set(SOURCES
  gradient_descent.hpp
  gradient_descent.cpp
  gradient_descent_impl.hpp
  test_function.hpp
  test_function.cpp
)

set(DIR_SRCS)
foreach(file ${SOURCES})
  set(DIR_SRCS ${DIR_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
endforeach()

set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
